<?php 
use backend\assets\ReportAsset;
/*@var $this yii\web\view */

use backend\assets\TabAsset;
use backend\assets\DatatablesAsset;
use backend\assets\AceAsset;
ReportAsset::register($this);
?>

<?php 
use yii\jui\DatePicker;
use yii\widgets\ActiveForm;
use yii\helpers\Html;
/* @var $form yii\widgets\ActiveForm */
/* @var $this yii\web\view */
?>
<?php $form = ActiveForm::begin([
    'method' => 'post',
    'action' => ['report/index'],
]);?>
<div class="col-sm-8">
<div class='row'>
<div class='col-sm-4'>
<?=$form->field($model, 'list',[
		'template' => "{label}\n<div class=\"col-lg-4\">{input}</div>\n<div class=\"col-lg-3\">{error}</div>", 
        'labelOptions' => ['class' => 'col-lg-3 control-label','style'=>'margin-top:5px'],  //修改label的样式
		
])->dropDownList([''=>'请选择','2'=>'本年','1'=>'本月','0'=>'本周'],['onchange'=>'aaaa()']) ?>
</div>
<div class='col-sm-3'><?=$form->field($model,'start_time')->widget(DatePicker::className(),[
         'language' => 'zh-CN' , //--设置为中文
		'dateFormat'=>'yyyy-MM-dd'
])?></div>
<div class='col-sm-3'><?=$form->field($model,'end_time')->widget(DatePicker::className(),[
        'language' => 'zh-CN' , //--设置为中文
		'dateFormat'=>'yyyy-MM-dd'
])?></div>
<div class='cle-sm-2'><?= Html::Button('提交',['class'=>'btn btn-success','id'=>'form_orderstatistics','onClick'=>'clicke()'])?>
						<?= Html::resetButton('重置',['class'=>'btn btn-primary'])?>
</div>
</div>
</div>

<?php 
ActiveForm::end();
?>



<div class="col-sm-11">
	<div class="row">
		<div class="col-xs-12 label label-lg label-info arrowed-in arrowed-right">
			<b>订单数据统计图</b>
		 </div>
		</div>
 	<?= $this->render('_chart') ?>													
</div><!-- /.col -->
  
<div class="col-sm-11">
	<div class="row">
		<div class="col-xs-12 label label-lg label-success arrowed-in arrowed-right">
			<b>订单数据统计表</b>
		 </div>
		</div>
 	<?= $this->render('_table') ?>
 												
</div><!-- /.col -->


